/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package puntos;

import distancias.Distancia;


/**
 *
 * @author 66880717
 */
public class Punto {
   private float x1;
   private float x2; 
   
public Punto (float x1, float x2){
this.x1=x1;
this.x2= x2;
}
public float calculardistancia (Punto p, Distancia d){
        return d.calcular(this,p);
    
}
    /**
     * @return the x1
     */
    public float getX1() {
        return x1;
    }

    /**
     * @param x1 the x1 to set
     */
    public void setX1(float x1) {
        this.x1 = x1;
    }

    /**
     * @return the x2
     */
    public float getX2() {
        return x2;
    }

    /**
     * @param x2 the x2 to set
     */
    public void setX2(float x2) {
        this.x2 = x2;
    }
}
